package Homework.Top05;

public class Fighter extends Air{
    private int warheadsNum;

    public int getWarheadsNum() {
        return warheadsNum;
    }

    public void setWarheadsNum(int warheadsNum) {
        this.warheadsNum = warheadsNum;
    }
    public Fighter(String barin,double weight,double height){
        super(barin,weight,height);
        this.warheadsNum=getWarheadsNum();
    }

    public void take_off(){
        System.out.println(getWeight()+"吨的"+getBairn()+"正在起飞");
    }
    public void accelerate(){
        System.out.println(getWeight()+"吨的"+getBairn()+"正在加速");
    }
    public void land(){
        System.out.println(getWeight()+"吨的"+getBairn()+"正在降落\t高度是"+getHeight());
    }
    public void launch(){
        System.out.println(this.getBairn()+"在发射导弹");
    }
}
